import Vue from 'vue'
import App from './App'
import store from './store'
import Cache from './utils/cache'
import util from 'utils/util'
import configs from './config/app.js'
import apps from './libs/apps.js' //校验登录是否失效
import * as filters from '@/filters'


import BaseMoney from './components/BaseMoney.vue';
Vue.component('BaseMoney', BaseMoney)

import uView from "uview-ui";
Vue.use(uView);

Vue.prototype.$util = util;
Vue.prototype.$config = configs;
Vue.prototype.$Cache = Cache;
Vue.prototype.$store = store;
Vue.prototype.$eventHub = new Vue();
Vue.config.productionTip = false
Vue.prototype.$LoginAuth = apps;
Vue.prototype.GaoDeKey = 'e2e0d7f608b4635d66b83c2cb7687c01';  //高德地图Key

Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})

uni.$u.setConfig({
	// 修改$u.config对象的属性
	config: {
		// 修改默认单位为rpx，相当于执行 uni.$u.config.unit = 'rpx'
		unit: 'rpx'
	},
	// 修改$u.props对象的属性
	props: {
		// 修改radio组件的size参数的默认值，相当于执行 uni.$u.props.radio.size = 30
		radio: {
			size: 15
		}
	}
})

App.mpType = 'app'

const app = new Vue({
	...App,
	store,
	Cache
})
app.$mount();

